'''
Created on 2013-3-13

@author: yangyil
'''
from KIWIImport import KIWIImport
from STREET_HATCHCSVImport import STREET_HATCHCSVImport
import ConfigParser

if __name__ == '__main__':
    DataImpt = {'KIWI':KIWIImport,'STREET_HATCHCSV':STREET_HATCHCSVImport}
    config = ConfigParser.ConfigParser()
    config.read('para.conf')
    src = config.get('INIT', 'src')
    loginInfo = config.get('INIT', 'logininfo')
    tableInfo = config.get('INIT', 'tableinfo')
    datakind = config.get('INIT', 'datakind')
    runkind = config.get('INIT', 'runkind')
    
    dataImport = DataImpt[datakind](src,loginInfo,tableInfo)
    Run = {'START':dataImport.Run,'RESUME':dataImport.BrkpntResume}
    Run[runkind]()

    pass